#ifndef DELETEFILE_H
#define DELETEFILE_H
#include "global_defines.h"
#include <QFileInfo>
#include <qdir.h>
#include <QDateTime>
#include <QTimer>
#include "file/fdebug.h"

class deletefile: public QObject
{
    Q_OBJECT
public:
    deletefile();

    inline bool DeleteFileOrFolder( const QString &strPath );

    void parameterSet(SOFTWARESETTINGS newsettings);

    QDateTime DeleteTimeline();

public slots:
    void autoDelete();

    void FolderPaths();

private:

    double timeline,deletetime;
    QTimer *timer;
    QString strPath,timeSet;
    SOFTWARESETTINGS fileSetting;
};

#endif // DELETEFILE_H
